package com.lj.dao;

import com.lj.entity.Warehouse;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@Mapper
public interface WarehouseDao {
    /**
     * 查询全部信息
     * @return
     */
    List<Warehouse> queryAllWarehouse();

    /**
     * 新增
     * @param warehouse
     * @return
     */
    int addWarehouse(Warehouse warehouse);

    /**
     * 更新
     * @param id
     * @return
     */
    Warehouse findWarehouseDetail(@RequestParam("id") int id);

    /**
     * 删除
     * @param id
     * @return
     */

    int deleteWarehouse(@RequestParam("id") int id);

    /**
     * 更新
     * @param emp
     * @return
     */
    int updateWarehouse(Warehouse warehouse);
}
